<?php

namespace app\common\model;

class UserScoreRank extends \think\Model
{
    // 表名
    protected $name = 'user_score_rank';

    public function user(){
        return $this->hasOne(\addons\shopro\model\User::class,'id','user_id')->field('id,nickname,avatar,level,score');
    }
}